/*
* $Id: QBeeInspectView.h 152 2010-09-23 18:28:55Z volok-aleksej@yandex.ru $
*
* Copyright 2009 by Volokitin Alexey
* All rights reserved
*
*/
#ifndef _QBEE_INSPECT_VIEW_H_
#define _QBEE_INSPECT_VIEW_H_

#include "QBeeView.h"

class CQBeeInspectView : public CQBeeView
{
	CButton m_buttonAdd;
	CButton m_buttonChange;
	CButton m_buttonDelete;
	std::map<int, std::tstring> m_aNamesQB;
protected:
	void PaintView(CDC* dc, CRect rect);
	void SetManipulation(Journal::typeItemMnpl type, int nId);
protected:
	DECLARE_MESSAGE_MAP();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnPaint();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnAddCommand();
	afx_msg void OnDeleteCommand();
	afx_msg void OnChangeCommand();
public:
	CQBeeInspectView(CState* pState);
	virtual ~CQBeeInspectView();
public:
	virtual void SetState();
	virtual bool IsViewState(State state);
protected:
	virtual void Init();
};

#endif/*_QBEE_INSPECT_VIEW_H_*/